<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024-06-13
  Time: 15:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>Insert Your Title</title>
  </head>

  <body>

  <%
    String contextPath = request.getContextPath();
  %>
<%--  <form action="/JavaWeb/add" method="post">--%>
<form action="<%=contextPath%>/add" method="get">
    <input type="text" name="userName" placeholder="请输入用户名"><br>
    <input type="password" name="userPwd" placeholder="请输入密码"><br>
    <input type="text" name="userPhone" placeholder="请输入手机号码"><br>
    <input type="radio" name="userGender" value="1" checked>男
    <input type="radio" name="userGender" value="2">女<br>
    <input type="submit" value="提交">
  </form>



  </body>
</html>
